<?php

declare(strict_types=1);

namespace App\WorkDepartment\QueueService;

use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
use App\WorkDepartment\Logic\SyncLogic as WorkDepartmentSyncLogic;

/**
 * 同步企业成员
 * Class DepartmentApply.
 */
class DepartmentApply
{
    /**
     * @var WorkDepartmentSyncLogic
     */
    protected $workDepartmentSyncLogic;


    /**
     * @AsyncQueueMessage(pool="department")
     */
    public function handle(array $corpIds, array $params): void
    {
        var_export('部门同步');
        //部门同步
        (new WorkDepartmentSyncLogic())->handle($corpIds, $params);
    }
}
